<template>
  <div>
    <select @change="change" :value="value">
      <option value="0">男</option>
      <option value="1">女</option>
      <option value="2">保密</option>
    </select>
  </div>
</template>

<script>
export default {
  props: {
    value: String,
  },
  methods: {
    change(e) {
      this.$emit("input", e.target.value);
    },
  },
};
</script>

<style>
</style>